package jbase.project.system.net.http;

import jbase.project.system.util.RegUtil;

public class HttpRequestHeaders extends HttpHeaders {

	public HttpRequestHeaders() {
		super();
	}

	public HttpRequestHeaders(String headers) {
		super(headers);
	}

	public void removeProxyConnection() {
		super.removeLine("\\s*" + RegUtil.toRegxIC("Proxy-Connection") + "\\s*:.*");
	}

	public void setConentLength(int contentLength) {
		super.insertOrUpdateLine("\\s*" + RegUtil.toRegxIC("Content-Length") + "\\s*:.*",
				"Content-Length:" + contentLength);
	}

}
